package bingo.component.dhtmlxgrid.config;

/**
 * Dec 17, 2008 10:53:17 AM
 * Author:snowbear11(chendw@bingosoft.net)
 * ReadMe:
 * ChangeLog:
 */
public class Option {
	private String id;
	private String title;
	private String value;
	
	public Option() {}
	
	public Option(String id) {
		this.id = id;
	}
	
	public Option(String id, String title, String value) {
		this.id = id;
		this.title = title;
		this.value = value;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}
	
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		final Option other = (Option) obj;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		return true;
	}	
}
